
let http = require('https');
let util = require('util');

http.get('https://www.imooc.com/index/getstarlist',(res)=>{
  let data = '';
  res.on('data',(chunk)=>{
    data += chunk;
  });
  console.log(999);
  res.on('end',()=>{
    let result = JSON.parse(data);
    let ins =util.inspect(result);
    console.log(`inspect:${ins}`);
    // console.log("result:" + result.msg);
    // console.log("cate:" + result.data.cate);
  })
})
